	<?php if (count($user_list) > 0): ?>

		<table>
			<tbody>

				<?php foreach($user_list as $list_section => $sub_list): ?>

					<?php if (count($sub_list) > 0): ?>

						<tr><th colspan="4"><?php echo $list_section; ?></th></tr>
						<tr>
							<th>Login</th>
							<th>Email</th>
							<th>Full Name</th>
							<th>Role</th>
							<th># Projects</th>
						</tr>

						<?php foreach($sub_list as $usr): ?>

							<tr>
								<td><?php echo $usr->login; ?></td>
								<td><?php echo $usr->email; ?></td>
								<td><?php echo $usr->last_name . ', ' . $usr->first_name; ?></td>
								<td><?php echo $usr->role_name; ?></td>
								<td><?php echo $usr->num_projects; ?></td>
							</tr>

						<?php endforeach; ?>

					<?php else: ?>

						<tr><th colspan="4"><?php echo $list_section; ?> <em>0 members</em></th></tr>

					<?php endif; ?>

				<?php endforeach; ?>

			</tbody>
		</table>

	<?php else: ?>
		<p>There are no users</p>
	<?php endif; ?>